package cn.worken.baseframe.api.controller;

import cn.worken.baseframe.bean.props.TestProp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author genxin.liu
 * @since 2021/12/27 16:57
 */
//@RestController
@RequestMapping("/prop")
public class PropController {
    
    @Autowired
    private TestProp testProp;
    
    @GetMapping("/test")
    public String test() {
        return testProp.getVal();
    }
}
